/********************************************************************************
  DESCRIPTION OF THE FILE HERE
********************************************************************************/

#ifndef POOL_H
#define POOL_H

#include "common.h"
#include "request.h"
#include "thread_list.h"

typedef struct SPool * ptrPool; 

#define POOL_MIN_SIZE 5
#define POOL_MAX_SIZE 10

ptrPool Pool_create(int, long long int, char *);

void Pool_assignSendAndCloseConnection(ptrPool, ptrRequest, int);

void Pool_destroy(ptrPool);

void Pool_fprintfStatistics(ptrPool pool, FILE * logfile);

#ifdef DEBUG
void Pool_printf (ptrPool);
#endif /* DEBUG */

#endif /*POOL_H*/
